package com.util;

import java.util.Random;

public class randomStrUnit {
    public static void randomStr(byte[] output, int len){
        if (output.length < len) {
            throw new IllegalArgumentException("Output array must have at least 'len' elements.");
        }
        Random random = new Random();

        for (int i = 0; i < len; i++) {
            output[i] = (byte) random.nextInt(256);
        }
    }
}
